package com.ruoyi.riskAssessment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 风险-三卡管理对象 rk_card
 *
 * @author lth
 * @date 2023-12-15
 */
public class RkCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 风险点描述 */
    @Excel(name = "风险点描述")
    private String des;

    /** 安装位置id */
    @Excel(name = "安装位置id")
    private String placeId;

    /** 安装位置 */
    @Excel(name = "安装位置")
    private String place;

    /** 类型id */
    @Excel(name = "类型id")
    private String typeId;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 等级id */
    @Excel(name = "等级id")
    private String levelId;

    /** 等级 */
    @Excel(name = "等级")
    private String level;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateByName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 排序 */
    @Excel(name = "排序")
    private Long sorting;

    /** 状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)； */
    @Excel(name = "状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；")
    private Long status;

    /** 提示类型(逗号分隔) */
    @Excel(name = "提示类型(逗号分隔)")
    private String promptTypeIds;

    /** 风险点 */
    @Excel(name = "风险点")
    private String riskPoint;

    /** 危险源描述 */
    @Excel(name = "危险源描述")
    private String riskSourceDesc;

    /** 可能导致事故 */
    @Excel(name = "可能导致事故")
    private String causeAccident;

    /** 现场控制措施 */
    @Excel(name = "现场控制措施")
    private String siteControlMeasures;

    /** 风险源类型ID */
    @Excel(name = "风险源类型ID")
    private String riskSourceTypeId;

    /** 风险源类型 */
    @Excel(name = "风险源类型")
    private String riskSourceType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setDes(String des)
    {
        this.des = des;
    }

    public String getDes()
    {
        return des;
    }
    public void setPlaceId(String placeId)
    {
        this.placeId = placeId;
    }

    public String getPlaceId()
    {
        return placeId;
    }
    public void setPlace(String place)
    {
        this.place = place;
    }

    public String getPlace()
    {
        return place;
    }
    public void setTypeId(String typeId)
    {
        this.typeId = typeId;
    }

    public String getTypeId()
    {
        return typeId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setLevelId(String levelId)
    {
        this.levelId = levelId;
    }

    public String getLevelId()
    {
        return levelId;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setCreateByName(String createByName)
    {
        this.createByName = createByName;
    }

    public String getCreateByName()
    {
        return createByName;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName)
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName()
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setSorting(Long sorting)
    {
        this.sorting = sorting;
    }

    public Long getSorting()
    {
        return sorting;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setPromptTypeIds(String promptTypeIds)
    {
        this.promptTypeIds = promptTypeIds;
    }

    public String getPromptTypeIds()
    {
        return promptTypeIds;
    }
    public void setRiskPoint(String riskPoint)
    {
        this.riskPoint = riskPoint;
    }

    public String getRiskPoint()
    {
        return riskPoint;
    }
    public void setRiskSourceDesc(String riskSourceDesc)
    {
        this.riskSourceDesc = riskSourceDesc;
    }

    public String getRiskSourceDesc()
    {
        return riskSourceDesc;
    }
    public void setCauseAccident(String causeAccident)
    {
        this.causeAccident = causeAccident;
    }

    public String getCauseAccident()
    {
        return causeAccident;
    }
    public void setSiteControlMeasures(String siteControlMeasures)
    {
        this.siteControlMeasures = siteControlMeasures;
    }

    public String getSiteControlMeasures()
    {
        return siteControlMeasures;
    }
    public void setRiskSourceTypeId(String riskSourceTypeId)
    {
        this.riskSourceTypeId = riskSourceTypeId;
    }

    public String getRiskSourceTypeId()
    {
        return riskSourceTypeId;
    }
    public void setRiskSourceType(String riskSourceType)
    {
        this.riskSourceType = riskSourceType;
    }

    public String getRiskSourceType()
    {
        return riskSourceType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("des", getDes())
            .append("placeId", getPlaceId())
            .append("place", getPlace())
            .append("typeId", getTypeId())
            .append("type", getType())
            .append("levelId", getLevelId())
            .append("level", getLevel())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("sorting", getSorting())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("promptTypeIds", getPromptTypeIds())
            .append("riskPoint", getRiskPoint())
            .append("riskSourceDesc", getRiskSourceDesc())
            .append("causeAccident", getCauseAccident())
            .append("siteControlMeasures", getSiteControlMeasures())
            .append("riskSourceTypeId", getRiskSourceTypeId())
            .append("riskSourceType", getRiskSourceType())
            .toString();
    }
}
